package com.eos.control.action.goods;

import java.util.HashMap;
import java.util.Map;

import com.eos.business.service.SysDeliverReceiptBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.ViewDeliverList;

public class DeleteBillOfSendAction extends AbstractBaseAction {
	private static final long serialVersionUID = 574704320188428246L;
	private Integer billOfSendId;
	private ViewDeliverList deliverList;

	public void setBillOfSendId(Integer billOfSendId) {
		this.billOfSendId = billOfSendId;
	}

	public ViewDeliverList getDeliverList() {
		return deliverList;
	}

	@Override
	public String execute() {
		try {
			SysDeliverReceiptBusinessService sdbs = new SysDeliverReceiptBusinessService();
			Map<String, String> map = new HashMap<String, String>();
			map.put("cur_page", "1");
			map.put("page_size", "1");
			map.put("id", billOfSendId + "");
			map.put("table_name", "view_deliver_list");
			deliverList = sdbs.getViewDeliverList(map);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
